-- GENERATED SPELL FOR [Warmaul Shaman] --


function spell0_18064(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(12548,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18064', 8280, 1)
end

function spell1_18064(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_18064', 3000, 1)
end

function spell2_18064(pUnit, Event) --@Scorching Totem,Self--
pUnit:FullCastSpellOnTarget(15038,pUnit)
pUnit:RegisterEvent('Sorts_18064', 35320, 1)
end

function Sorts_18064(pUnit, Event)
local choix_sorts_18064 = math.random(0, 2)
if choix_sorts_18064 == 0 then
pUnit:RegisterEvent('spell0_18064', 1, 1)
end
if choix_sorts_18064 == 1 then
pUnit:RegisterEvent('spell1_18064', 1, 1)
end
if choix_sorts_18064 == 2 then
pUnit:RegisterEvent('spell2_18064', 1, 1)
end
end

function mob18064_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18064', math.random(1500, 3000), 1)
end

function mob18064_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18064_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18064_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18064, 1, 'mob18064_Action')
RegisterUnitEvent(18064, 2, 'mob18064_Leave')
RegisterUnitEvent(18064, 3, 'mob18064_Kill')
RegisterUnitEvent(18064, 4, 'mob18064_Die')
